package cn.yutong.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel("气象数据")
public class EnvIndicators extends Model<EnvIndicators> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Date time;

    private Integer timestamp;


    /**
     * 大气温度
     */
    private Double atmosphereTemp;

    /**
     * 大气湿度
     */
    private Double atmosphereHumidity;

    /**
     * 土壤湿度
     */
    private Double soilHumidity;
    /**
     * 土壤温度
     */
    @ApiModelProperty("土壤温度")
    private Double soilTemp;


    /**
     * 降雨量
     */
    @ApiModelProperty("降雨量")
    private Double rainfall;

    /**
     * 日降雨量
     */
    @ApiModelProperty("日降雨量")
    private Double rainfallDay;

    /**
     * 风速
     */
    @ApiModelProperty("风速")
    private Double windSpeed;

    /**
     * 风向
     */
    @ApiModelProperty("风向")
    private Double windDirection;


    /**
     * 照度
     */
    @ApiModelProperty("照度")
    private Double illuminance;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EnvIndicators{" +
                ", id=" + id +
                ", timestamp=" + timestamp +
                ", time=" + time +
                ", atmosphereTemp=" + atmosphereTemp +
                ", atmosphereHumidity=" + atmosphereHumidity +
                ", soilHumidity=" + soilHumidity +
                ", soilTemp=" + soilTemp +
                ", rainfall=" + rainfall +
                ", rainfallDay=" + rainfallDay +
                ", windSpeed=" + windSpeed +
                ", windDirection=" + windDirection +
                ", illuminance=" + illuminance +
                "}";
    }

    public EnvIndicators() {
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public Integer getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Integer timestamp) {
		this.timestamp = timestamp;
	}

	public Double getAtmosphereTemp() {
		return atmosphereTemp;
	}

	public void setAtmosphereTemp(Double atmosphereTemp) {
		this.atmosphereTemp = atmosphereTemp;
	}

	public Double getAtmosphereHumidity() {
		return atmosphereHumidity;
	}

	public void setAtmosphereHumidity(Double atmosphereHumidity) {
		this.atmosphereHumidity = atmosphereHumidity;
	}

	public Double getSoilHumidity() {
		return soilHumidity;
	}

	public void setSoilHumidity(Double soilHumidity) {
		this.soilHumidity = soilHumidity;
	}

	public Double getSoilTemp() {
		return soilTemp;
	}

	public void setSoilTemp(Double soilTemp) {
		this.soilTemp = soilTemp;
	}

	public Double getRainfall() {
		return rainfall;
	}

	public void setRainfall(Double rainfall) {
		this.rainfall = rainfall;
	}

	public Double getRainfallDay() {
		return rainfallDay;
	}

	public void setRainfallDay(Double rainfallDay) {
		this.rainfallDay = rainfallDay;
	}

	public Double getWindSpeed() {
		return windSpeed;
	}

	public void setWindSpeed(Double windSpeed) {
		this.windSpeed = windSpeed;
	}

	public Double getWindDirection() {
		return windDirection;
	}

	public void setWindDirection(Double windDirection) {
		this.windDirection = windDirection;
	}

	public Double getIlluminance() {
		return illuminance;
	}

	public void setIlluminance(Double illuminance) {
		this.illuminance = illuminance;
	}

}
